<template>
  <div>
    <van-grid :column-num="5">
      <van-grid-item
        v-for="item in channel"
        :key="item.id"
        :icon="item.icon_url"
        :text="item.name"
        @click="btn(item.id)"
      />
    </van-grid>
  </div>
</template>
 
<script>
export default {
  props:["channel"],
  methods: {
    btn(id){
      this.$router.push("/channel/"+id);
    }
  },
};
</script>
 
<style lang = "less" scoped>
</style>